package com.kuang.dao;

import com.kuang.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Niddles
 * @create 2021：05:23:10:34
 * @Theme default
 */
public interface BookMapper {
    int addBook(Books books);

    int deleteBook(@Param("bookID") int id);

    int updateBook(Books books);

    Books queryBookById(@Param("bookID") int id);

    Books queryBookByName(@Param("bookName") String bookName);

    List<Books> queryBooks();
}
